package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.linlinjava.litemall.db.handler.StringArrayHandler;
import java.time.LocalDateTime;
@TableName(value = "litemall_version_history",autoResultMap = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LitemallVersionHistory {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId
    private Integer id;

    private String version;
    private String testPerson;
    private String checkPerson;
    private String appDownload;
    private String posDownload;
    @TableField(typeHandler = StringArrayHandler.class)
    private String[] content;
    @TableField(typeHandler = StringArrayHandler.class)
    private String[] keep;
    private String title;
    private String wordDownload;
    private Boolean isNew;
    private LocalDateTime addTime;
}
